package com.cnunicom.config;

import com.aliyuncs.CommonRequest;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.IAcsClient;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.profile.DefaultProfile;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: dingziyuan
 * @Date: 2020/3/23 17:11
 * @Description: 阿里云配置类
 */
@Configuration
public class AliyunConfig {

    @Bean
    public DefaultAcsClient defaultAcsClient() {
        DefaultProfile profile = DefaultProfile.getProfile("cn-hangzhou",
                "LTAI4Fn8TC32huCbkQRzeNCL", "z4VJd79dOOOEL10G4uuGqgRHqBFAhh");
        return new DefaultAcsClient(profile);
    }

}

